package com.zqh.forum.utils;

import org.springframework.util.StringUtils;

/**
 * 判断字符串是不是为空的类
 */
public class StringUtil {

    /**
     * 判断字符串是否为空
     * @param value
     * @return
     */
    public static boolean isEmpty(String value){
        //return value == null || value.length() == 0;
        boolean b = !StringUtils.hasLength(value);
        return b;
    }
}
